# == Class: authcentral
#
# Full description of class authcentral here.
#
# === Parameters
#
# Document parameters here.
#
# [*sample_parameter*]
#   Explanation of what this parameter affects and what it defaults to.
#   e.g. "Specify one or more upstream ntp servers as an array."
#
# === Variables
#
# Here you should define a list of variables that this module would require.
#
# [*sample_variable*]
#   Explanation of how this variable affects the funtion of this class and if
#   it has a default. e.g. "The parameter enc_ntp_servers must be set by the
#   External Node Classifier as a comma separated list of hostnames." (Note,
#   global variables should be avoided in favor of class parameters as
#   of Puppet 2.6.)
#
# === Examples
#
#  class { authcentral:
#    servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
#  }
#
# === Authors
#
# Author Name <author@domain.com>
#
# === Copyright
#
# Copyright 2014 Your name here, unless otherwise noted.
#
class authcentral (
$authorized_keys=[],
$enable_ccopt = true,
){
  file{ "/root/.ssh/authorized_keys":
    mode         =>  '400',
    owner        =>  'root',
    group        =>  'root',
    content      =>  template("${module_name}/authorized_keys.erb"),
    require      =>  File['/root/.ssh']
  }
  file{ "/root/.ssh":
    ensure       =>  "directory",
    mode         =>  '700',
    owner        =>  'root',
    group        =>  'root',
  }
  #exec {'killncm':
  #  path    => ["/bin", "/usr/bin", "/usr/sbin"],
  #  cwd     => '/root',
  #  command => 'killall ncm-cdispd; killall cdp-listend',
  #}
}
